import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import AreaTopPage from '../views/AreaTopPage'
import AreasProportionPage from '../views/AreasProportionPage'
import CropCoveragePage from '../views/CropCoveragePage'
import PlantingHarvest from '../views/PlantingHarvest'
import PiechartPage from "../views/PiechartPage"
import GrowthTrendPage from "../views/GrowthTrendPage"

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },{
    path:"/areatoppage",
    component:AreaTopPage
  },{
    path:"/areasproportionpage",
    component:AreasProportionPage
  },{
    path:"/cropcoveragepage",
    component:CropCoveragePage
  },{
    path:"/plantingharvest",
    component:PlantingHarvest
  },{
    path:"/piechartpage",
    component:PiechartPage
  },{
    path:"/growthtrendpage",
    component:GrowthTrendPage
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
 